home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Texteditors / Origami / bindings / fun / userlang < prev    next >
Encoding:
Text File  |  1996-09-27  |  1.6 KB  |  64 lines

  1. @if-using not(ocl-file-userlang)
  2.    @use (ocl-file-userlang)
  3.    ;OCL{{{}}}
  4.    ;OCL{{{  reference description
  5.    @if-using ( FUN-REFERENCE ) ; 1 ;
  6.    This library defines some functions, to test some `User' cold comment
  7.    languages.
  8.  
  9.    The functions must be enalbed using the following tags:
  10.    @ref-start-tbl Tag 16 Function 32
  11.    language-ocl @@ test-language-ocl
  12.    @ref-end-item
  13.    @fi
  14.    ;OCL}}}
  15.    ;OCL{{{  test-language-ocl
  16.    ;OCL{{{  reference
  17.    @if-using ( FUN-REFERENCE ) ; 2 ; test-language-ocl-called
  18.    ;OCL{{{  test-language-ocl
  19.    Returns 1, if language is set to `User ;OCL ',else 0.
  20.    ;OCL}}}
  21.    @fi
  22.    ;OCL}}}
  23.    @if-using ( language-ocl )
  24.    ( deffun test-language-ocl
  25.       ( if
  26.            and
  27.             ( test-language User
  28.               =("; fold-comment-start 0)
  29.               =("O fold-comment-start 1)
  30.               =("C fold-comment-start 2)
  31.               =("L fold-comment-start 3)
  32.             )
  33.          ( return-value-from-macro true )
  34.         fi
  35.         return-value-from-macro false
  36.       )
  37.    )
  38.    @fi
  39.    ;OCL}}}
  40.    ;OCL{{{  test-language-miranda
  41.    ;OCL{{{  reference
  42.    @if-using ( FUN-REFERENCE ) ; 2 ; test-language-miranda-called
  43.    ;OCL{{{  test-language-miranda
  44.    Returns 1, if language is set to `User || ',else 0.
  45.    ;OCL}}}
  46.    @fi
  47.    ;OCL}}}
  48.    @if-using ( language-miranda )
  49.    ( deffun test-language-miranda
  50.       ( if
  51.            and
  52.             ( test-language User
  53.               =("| fold-comment-start 0)
  54.               =("| fold-comment-start 1)
  55.             )
  56.          ( return-value-from-macro true )
  57.         fi
  58.         return-value-from-macro false
  59.       )
  60.    )
  61.    @fi
  62.    ;OCL}}}
  63. @fi
  64.